/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package triploa;

import java.io.IOException;
import java.util.Vector;
import org.kxml2.io.KXmlParser;
import org.xmlpull.v1.XmlPullParserException;
public class MessageList
        
{
    Vector results=null;
    private MessageList(){
    results=new Vector();
}
    /**
 * call for getting a new instance of this class from xml
 * @param p Parser
 * @return a new instance of FeedBack
 * @throws java.io.IOException
 * @throws org.xmlpull.v1.XmlPullParserException
 */
public static MessageList create(KXmlParser p) throws IOException, XmlPullParserException
{
    MessageList geo=new MessageList();
    geo.update(p);
    return geo;
}
/**
 * Update this object class from xml parser
 * @param p Parser
 * @throws java.io.IOException
 * @throws org.xmlpull.v1.XmlPullParserException
 */
public void update(KXmlParser p) throws IOException, XmlPullParserException
{
       Message app=Message.create(p);
       while(app!=null)
        {
               results.addElement(app);
               app=Message.create(p);
        }
}
}